package com.foryou.wechat.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Created by Lee.
 */
@Data
@TableName("v_invite_info")
@NoArgsConstructor
public class InviteInfoEntity extends BaseEntity {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private Long businessId;
    private Long fromUserId;
    private Long toUserId;
    private String phone;
    private String weChat;
    private String weibo;
    private String reason;
    private String intro;
    private int inviteType;
    private int unRead;

    public InviteInfoEntity(Long businessId, Long fromUserId, Long toUserId, String phone, String weChat, String weibo, String reason, String intro, int inviteType) {
        this.businessId = businessId;
        this.fromUserId = fromUserId;
        this.toUserId = toUserId;
        this.phone = phone;
        this.weChat = weChat;
        this.weibo = weibo;
        this.reason = reason;
        this.intro = intro;
        this.inviteType = inviteType;
    }
}
